home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
bjack.swf
/
scripts
/
DefineSprite_186
/
frame_65
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
3KB
|
153 lines
TS1 = eval("_level0/1Player:pl1Split");
TS2 = eval("_level0/1Player:pl1Split2");
if("21" < TS1)
{
b = "1";
}
if("21" < TS2)
{
b2 = "1";
}
if(b == "1" and b2 == "1")
{
bb = "1";
}
if(b != "1")
{
if("21" >= d)
{
if(TS1 < d)
{
lose = "1";
}
else if(d < TS1)
{
win = "1";
}
else
{
stay = "1";
}
}
}
if(b2 != "1")
{
if("21" >= d)
{
if(TS2 < d)
{
lose2 = "1";
}
else if(d < TS2)
{
win2 = "1";
}
else
{
stay2 = "1";
}
}
}
if(bb != "1")
{
if(lose == "1" and lose2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose2");
}
}
if(stay == "1" or stay2 == "1")
{
if(stay == "1" and stay2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Push2");
}
}
else
{
if(win == "1" or win2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Only1");
}
}
if(lose == "1" or lose2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("LoseOne");
}
}
}
}
if(win == "1" or win2 == "1")
{
if(win == "1" and win2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Win2");
}
}
else
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Only1");
}
}
}
}
if(b == "1" and bb != "1")
{
if(lose2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose2");
}
}
if(win2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Only1");
}
}
if(stay2 == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("LoseOne");
}
}
}
else if(b2 == "1" and bb != "1")
{
if(lose == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose2");
}
}
if(win == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Only1");
}
}
if(stay == "1")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("LoseOne");
}
}
}